<!-- 每日热门团购
20130623
curtis chin
-->


<?php 



$others_city_id = abs(intval($city['id']));
$others_now = time();

//if (!$disable_multi){

	$oc = array( 
			'team_type' => 'normal',
			"begin_time < '$others_now'",
			"end_time > '$others_now'",
			"((city_ids like '%@$others_city_id@%' or city_ids like '%@0@%') or (city_ids = '' and city_id in(0,$others_city_id)))",
			);
	$others = DB::LimitQuery('team', array(
				'condition' => $oc,
				'order' => 'ORDER BY `now_number` DESC, `sort_order` DESC, `id` DESC',
				'size' => $others_side_ns,
				));
//}
; ?>
<?php if($others){?>
<div class="sbox side-hotteam">
	<div class="sbox-content">
		<div class="tip">
		<h2><a href="/team/current.php">每日热门团购</a></h2>

		<ol>
		<?php $index=0; ?>
		<?php if(is_array($others)){foreach($others AS $one) { ?>
		<li>
		<div class="title"><span class="num"><?php echo ++$index; ?></span><a href="/team.php?id=<?php echo $one['id']; ?>"><?php echo $one['title']; ?></a></div>
		<div class="assess">
				<table width="100%" cellspacing="0" cellpadding="0" class="deal-table">
				<tbody>
					<tr>
						<td align="left" width="115">
							<a href="/team.php?id=<?php echo $one['id']; ?>">
								<img width="105" height="66" src="<?php echo team_image($one['image'], true); ?>">
							</a>
						</td>
						<td>
							<div class="price Price-font">
								<?php echo $currency; ?><?php echo moneyit($one['team_price']); ?>
							</div>
							<div class="num">
								<a class="num" target="_blank" href="/team.php?id=<?php echo $one['id']; ?>"><?php echo $one['now_number']; ?>人购买</a>
							</div>
							<div>
								<span class="msstar50"></span>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
		</li>
		<?php }}?>
		
		</ol>

		</div>
	
	</div>
</div>
<?php }?>
